package com.mangowang.module.main.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.mangowang.lib.common.proto.Transfer;
import com.mangowang.module.main.R;

import java.util.List;

public class MarchineNewAdapter extends BaseQuickAdapter<Transfer.machine, BaseViewHolder> {
    public MarchineNewAdapter(Context context, List<Transfer.machine> dataList) {
        super(R.layout.item_shop, dataList);
    }

    @Override
    protected void convert(BaseViewHolder helper,Transfer.machine item) {
        helper.setText(R.id.tv_name,item.getGoodsInfo())
                .setText(R.id.tv_sn,"SN: "+item.getSnCode())
                .setText(R.id.tv_time,item.getMsg());
    }
}
